Skip to content

Conversation

@BrennanConroy
Copy link
Member

Fixes #50252
Helps with #58233

The HeadersLengthLimit on MultipartReader now applies to the inner stream on first read. What this means is that if the request has any preamble data (data before the first boundary), the HeadersLengthLimit will now be applied to that preamble data. Before it was hardcoded to the default value of 16kb and not modifiable before being used.

@ghost ghost added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label Dec 27, 2024
@BrennanConroy BrennanConroy requested review from Copilot and removed request for captainsafia and halter73 December 27, 2024 22:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

Copy link
Member

@captainsafia captainsafia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Mostly some syntax nits inside.

@BrennanConroy BrennanConroy merged commit 089c3d5 into main Jan 2, 2025
27 checks passed
@BrennanConroy BrennanConroy deleted the brecon/multipart-limit branch January 2, 2025 23:40
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview1 milestone Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions feature-http-abstractions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multipart body length limit 16384 exceeded in NET CORE

3 participants